package me.xiaoyan.ehr.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import me.xiaoyan.ehr.mapper.EmployeeInfoMapper;
import me.xiaoyan.ehr.po.EmployeeInfo;
import me.xiaoyan.ehr.service.EmployeeInfoService;
import org.springframework.stereotype.Service;

@Service
public class EmployeeInfoServiceImpl extends BaseService<EmployeeInfoMapper, EmployeeInfo>
        implements EmployeeInfoService {
    @Override
    public EmployeeInfo getByEmail(String email) {
        QueryWrapper query = new QueryWrapper();
        query.eq("email",email);
        return getOne(query);
    }
}
